package com.nari.kmd_dataservice.util;

import java.text.DecimalFormat;

/**
 * @ClassName: AlgorithmUtil
 * @Description:
 * @Author: zhangnaijiang
 * @Date: 2022/02/17 15:46
 * @Version 1.0.0
 */
public class AlgorithmUtil {
    /**
     * 保留两位小数点
     * @param value
     * @return
     */
    public static Double getPoint(double value){
        String decimalFormat = new DecimalFormat("#.##").format(value);
        return Double.valueOf(decimalFormat);
    }

}
